package csw.services;

import csw.Interfaces.Account2IService;
import csw.model.Account2VO;

public class Account2Service implements Account2IService {

	@Override
	public void getMonthlyInterestRate(Account2VO ac) {
			double mir;
			mir = ac.getInterestRate()/ 12;
			ac.setMonthlyInterestRate(mir);
	}

	@Override
	public void withDraw(Account2VO ac ,int amount) {
		int balance;
		balance =ac.getBalance() - amount;
		ac.setBalance(balance);

	}

	@Override
	public void deposit(Account2VO ac,int amount) {
		int balance;
		balance =ac.getBalance() + amount;
		ac.setBalance(balance);

	}

}
